package com.alibaba.dubbo.demo.util;

import org.springframework.context.support.ClassPathXmlApplicationContext;

import java.io.IOException;

/**
 * @Author:chenjinhang
 * @Description:
 * @Date: create in 15:52 2018/2/7
 **/
public class dubboTest {
    public static void main(String[] args) throws IOException {
        ClassPathXmlApplicationContext context = new ClassPathXmlApplicationContext("applicationConfig.xml");
        context.start();
        context.registerShutdownHook();
        System.out.println("-------- service started successfully --------");
        System.in.read();
    }
}
